package com.software.graduationproject.modules.comment.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.software.graduationproject.commons.select.Select;
import com.software.graduationproject.modules.comment.entity.Comment;
import com.software.graduationproject.modules.comment.object.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.metadata.Page;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * CommentMapper
 * ---------------------------------------------------------------------------------------------------------------------
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    Page<CommentVo> selectPageVo(@Param("select") Select select);

    List<CommentVo> selectListVo(@Param("select") Select select);

    List<CommentVo> findCommentsByIds(@Param("ids") List<Long> ids);
}
